#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.71])
AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])
AC_CONFIG_SRCDIR([src/show_img.c])
AC_CONFIG_HEADERS([config.h])

AC_CONFIG_MACRO_DIRS([m4])

# Checks for programs.
AC_PROG_CC([arm-linux-gcc])

# Checks for libraries.
# FIXME: Replace 'main' with a function in '-ldl':
AC_CHECK_LIB([lcd], [lcd])
# FIXME: Replace 'main' with a function in '-ljpeg':
AC_CHECK_LIB([jpg], [jpg])
# FIXME: Replace 'main' with a function in '-llife':
AC_CHECK_LIB([bmp], [bmp])

AM_INIT_AUTOMAKE([-Wall -Werror])

# Checks for header files.
AC_CHECK_HEADERS([fcntl.h stdint.h sys/ioctl.h unistd.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_CHECK_HEADER_STDBOOL
AC_TYPE_INT16_T
AC_TYPE_INT32_T
AC_TYPE_INT8_T
AC_TYPE_UINT32_T
AC_TYPE_UINT8_T
AM_PROG_AR

LT_INIT

# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_MMAP

AC_CHECK_FUNCS([bzero memset munmap strerror strstr])

AC_CONFIG_FILES([Makefile
                 lib/Makefile
                 src/Makefile])
AC_OUTPUT
